package com.wl.day45.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wl.day45.dao.Type1Mapper;
import com.wl.day45.model.Type1;
import com.wl.day45.util.BusinessException;



@Service
public class Type1Biz {
	@Resource
	private Type1Mapper type1DAO;
	
	public List<Type1> findAll() throws BusinessException{
		try {
			return type1DAO.findAll();
		} catch (Exception e) {
			e.printStackTrace();
			throw new BusinessException("E02B04");
		}
	}
}
